<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Formulario alertas</title>



 <link rel="stylesheet" type="text/css" href=" <?php echo base_url();?>css/style_list_tecn.css"></link>

</head>

<body onload="noMarcar(); window.parent.scrollTo(0,0)"></br>

<span style="color: red;"><?php echo validation_errors(); ?></span>

<?php echo form_open('alertas/index/'.$idObra.''); ?>

<section id="cajaform">

<label>Nombre</label>
<input type="text" name="nombre" value="<?php echo set_value('nombre'); ?>" size="25" style="float: right;"/></br></br>
<label>Apellidos</label>
<input type="text" name="apellidos" value="<?php echo set_value('apellidos'); ?>" size="25" style="float: right;"/></br></br>
<label>Nivel</label>
<select name ="nivel" id="nivel" style="float: right;"> 
 <?php foreach($niveles as $item){?>
        
        
                           
         
       <option value="<?= $item['idNivelA']; ?>"><?= $item['nivelAlerta'];?></option> 
          
          <?php  }?>
          
          </select></br></br>
          
<label>Email</label>
<input type="email" name="email" value="<?php echo set_value('email'); ?>" size="25" style="float: right;"/></br></br>
<label>Movil</label>
<input type="number" name="movil" value="<?php echo set_value('movil'); ?>" size="25" style="float: right;"/></br></br>


<label>Subcontrata</label>
<select name="empresa" id="empresa" style="float: right;">
<?php foreach($subcons as $sb):?>
<option value="<?php echo $sb->idSubcontrata?>"><?= $sb->nombreSub ?></option>

<?php endforeach;?>
</select></br></br>

<input type="button" value="Cancelar" class="btnLogin" onClick=" window.location.href='<?php echo base_url();?>index.php/list_alertas/index/<?php echo $idObra;?>' " style="float: right;"/>

<section><button type="submit" class="btnLogin" style="float: right;" >A&ntilde;adir</button></section></br>
</section></br>
</form>
</body>
</html>
